<table width="100%" border="0" cellpadding="0" cellspacing="0" background="/images/mainpage-sliced_16.jpg">
  <tr>
    <td width="20" height="40">&nbsp;</td>
    <td class="style5" style="border-right:solid 1px #FFFFFF;">View Profile</td>
  </tr>
</table>
<table>
  <tbody>    
    <tr>
      <th class="style2" align="left">Name:</th>
      <td><?php echo $resource->getName() ?></td>
    </tr>
    <tr>
      <th class="style2" align="left">Emailaddress:</th>
      <td><?php echo $resource->getEmailaddress() ?></td>
    </tr>
    <tr>
      <th class="style2" align="left">Contactnumber:</th>
      <td><?php echo $resource->getContactnumber() ?></td>
    </tr>    
  </tbody>
</table>

<hr />

&nbsp;<a href="<?php echo url_for(array('module' => 'resource', 'action' => 'edit', 'resourceid' => $sf_user->getGuardUser()->getResource()->getResourceid(), 'loggedinuser' => $sf_user->getUserId())) ?>"> Edit</a>